package com.leetcode.August;

/**
 * @Description: 只出现一次的数字
 * @Author: Mr.Fxy
 * @CreateTime: 2024-07-28 09:24
 */
public class single {
    public int singleNumber(int[] nums) {
        for(int i=1;i<nums.length;i++) nums[0]^=nums[i];
        return nums[0];
    }
}
